package com.ocom.payhandle.controller;

import cn.hutool.core.date.DateUtil;
import com.ocom.common.constant.PayConfigUrl;
import com.ocom.common.request.payconfig.BatchForecastOrderRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.utils.ResultUtil;
import com.ocom.payhandle.service.ForecastDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class ForecastDataController {
    @Autowired
    private ForecastDataService forecastDataService;
    @PostMapping(PayConfigUrl.URL_batchForecastOrder)
    public Result batchForecastOrder(@RequestBody BatchForecastOrderRequest batchForecastOrderRequest){
//        batchForecastOrderRequest.setMealDate(DateUtil.beginOfDay(new Date()));
//        return this.forecastDataService.batchForecastOrder(batchForecastOrderRequest.getComId(),batchForecastOrderRequest);
        return ResultUtil.error(400);
    }
}
